package com.base.caselib;

import android.view.View;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.base.caselib.databinding.ActivityWithholdBinding;
import com.base.commonlib.base.CBaseBarMvpActivity;

/**
 * Created by weikailiang on 2019/6/25.
 */
@Route(path = "/case/withold")
public class WithHoldActivity extends CBaseBarMvpActivity{
    private ActivityWithholdBinding mBinding;
    @Override
    protected int getLayoutResource() {
        return R.layout.activity_withhold;
    }

    @Override
    protected void init() {
        super.init();
        mBinding = (ActivityWithholdBinding) mRootBinding;
        setBackNavigation();
        setBarTitle("暂扣物品");
    }

    @Override
    protected void start() {
        mBinding.llAll.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //暂扣物品
                ARouter.getInstance().build("/case/case2add")
                        .withString("ID","duQ5fE5fj9Hy3lLsJGI")
                        .withInt("num",1)
                        .withString("type","3")
                        .navigation();
            }
        });
        mBinding.llUp.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //先行登记
                ARouter.getInstance().build("/case/case2add")
                        .withString("ID","h5LAtzdrlJUG17azQsh")
                        .withInt("num",1)
                        .withString("type","4")
                        .navigation();
            }
        });
    }



}
